package ysq.xyg.service;

import com.github.pagehelper.PageInfo;
import ysq.xyg.model.Member;

import java.util.List;

/**
 * @author yu sheng qiang
 * @create 2017-04-19 14:10
 **/
public interface MemberService extends BaseService<Member> {
    //分页查询
    public PageInfo<Member> pageSelectEntityCount(Member member, int pageSize, int pageNum);
    //分页查询
    public PageInfo<Member> pageSelectEntityXFCount(Member member, int pageSize, int pageNum) ;
    //分页查询
    public PageInfo<Member> pageInfo(Member member, int pageSize, int pageNum) ;
    //条件查询
    public List<Member> list(Member member);
    //查询数量
    public int selectMemberCount(Member member);
    public Member selectEntityByOpenid(String openid);
    //验证手机号
    public boolean checkPhone(String phone);
    /**
     * 查询当前招募人消费记录
     */
    List<Member> selectMoney(String introductUserId);

    List<Member> selectEntity(Member record);

    /**
     * 查询id最高的值
     */
    int selectMaxId();
}
